package com.zkthink.ceres.member.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 关联客户表
 * </p>
 *
 * @author ck
 * @since 2022-03-10
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_relation_acoount")
@ApiModel(value = "CeresRelationAcoount", description = "关联客户表")
@AllArgsConstructor
public class CeresRelationAcoount extends Entity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    @TableField("main_mid")
    @Excel(name = "会员id")
    private Long mainMid;

    /**
     * 关联客户
     */
    @ApiModelProperty(value = "关联客户")
    @TableField("relation_mid")
    @Excel(name = "关联客户")
    private Long relationMid;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @ApiModelProperty(value = "逻辑删除 1-删除 0-未删除")
    @TableField("is_delete")
    @Excel(name = "逻辑删除 1-删除 0-未删除")
    private Integer isDelete;


    @Builder
    public CeresRelationAcoount(Long id, LocalDateTime createTime, LocalDateTime updateTime, Long createUser, Long updateUser,
                                Long mainMid, Long relationMid, Integer isDelete) {
        this.id = id;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createUser = createUser;
        this.updateUser = updateUser;
        this.mainMid = mainMid;
        this.relationMid = relationMid;
        this.isDelete = isDelete;
    }

}
